package ooday03;

public class Dog extends Animal implements Swim {
    Dog(){}
    Dog(String name, int age, String color){
        super(name, age, color);
    }
    public void eat(){
        System.out.println(color+"色"+age+"岁的"+name+"在吃狗粮");
    }
    public void drink(){
        System.out.println(color+"色"+age+"岁的"+name+"在喝牛奶");
    }
    static void lookHome(){
        System.out.println("狗看家");
    }

    public void swim() {
        System.out.println(color+"色"+age+"岁的"+name+"在游泳");
    }
}
